from util.DbUtils import DatabaseUtil

db = DatabaseUtil(user="root",password="123456",database="woniuatm",port=3306)

def read_user():
    sql = 'select * from user'
    result= db.select(sql)
    return result


# 查询user_id 对应信息
def read_user_info(login_user_id):
    sql = "select * from user where user_id ='%d'" % (login_user_id)
    return db.select(sql)

